/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package server;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

/**
 *
 * @author Arnaud
 */
 @XmlRootElement
public class ServerHealth implements Serializable {

    private List<Task> tasks;
    private int cpuLoad;
    private int memory;

    public ServerHealth() {
    }

    ServerHealth(ArrayList<Task> tasks, int cpuLoad, int memory) {
        this.cpuLoad = cpuLoad;
        this.tasks = tasks;
        this.memory = memory;

    }

    public void setTasks(List<Task> tasks) {
        this.tasks = tasks;
    }

    public void setCpuLoad(int cpuLoad) {
        this.cpuLoad = cpuLoad;
    }

    public void setMemory(int memory) {
        this.memory = memory;
    }
@XmlElement
    public List<Task> getTasks() {
        return tasks;
    }    
@XmlElement
    public int getCpuLoad() {
        return cpuLoad;
    }
@XmlElement
    public int getMemory() {
        return memory;
    }
}
